"use strict";

const Ws    = require("ws").Server;
const Utils = require("./utils");

let ws = new Ws({"port":1234});
ws.on("connection",  conn => {
  conn.on("message", message => {
    console.log("received: [ %j ]", Utils.decode(message));
  });
  conn.SendPacket(2, {
    "time": 23145,
    "score": 1234
  });
});

